package br.com.center.loja.testes;


public class Teste {
	
	public static void main(String[] args) {
//		String content = "a|b|c|d|e";
//		
//		String[] split = content.split("\\|");
//		
//		System.out.println(split.length);
//		
//		for (String string : split) {
//			System.out.println(string);
//		}
		
		String zipCode = "15997-159";
		
		if(zipCode.matches("[0-9]{5}-[0-9]{3}")){
			zipCode = zipCode.replaceAll("-", "");
		}
		
		System.out.println(zipCode);
	}

}